package aecs

import (
	"github.com/aliyun/alibaba-cloud-sdk-go/services/ecs"
)

func (c *Client) DeleteInstance(req *ecs.DeleteInstanceRequest) (response *ecs.DeleteInstanceResponse, err error) {
	client := c.Client

	req.InstanceId = "1226201f-e0a4-4dda-9f09-a05f015272a8"
	req.Method = "GET"
	req.Port = "8788"

	response, err = client.DeleteInstance(req)
	if err != nil {
		return nil, err
	}

	return response, nil
}
